package prototype.deep;

import java.util.Date;

public class Video implements Cloneable {
    private String name;
    private Date setTime;

    public Video() {
    }

    public Video(String name, Date setTime) {
        this.name = name;
        this.setTime = setTime;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        Video video = (Video) super.clone();
        video.setTime=(Date) this.setTime.clone();
        return video;
    }

    @Override
    public String toString() {
        return "Video{" +
                "name='" + name + '\'' +
                ", setTime=" + setTime +
                '}';
    }
}
